From 75a5d014e3899c4b0457f72e2e22a0c58bcaa087 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 1 Apr 2006 10:40:54 +0100 Subject: [PATCH] [SVM] Do not update seg.base in realmode while obtaining the io addr for ins/outs. Signed-off-by: Tom Woller --- xen/arch/x86/hvm/svm/svm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 77ba3f8089..bc2e743df4 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -1163,16 +1163,12 @@ static unsigned int check_for_null_selector(struct vmcb_struct *vmcb, seg = vmcb->ds; break; default: - if (dir == IOREQ_READ) + if (dir == IOREQ_READ) /* IN/INS instruction? */ seg = vmcb->es; else seg = vmcb->ds; } - /* In real Mode */ - if (real) - seg.base = seg.sel << 4; - if (base) *base = seg.base; -- 2.30.2